<html>
<head><meta charset="utf-8"><title>error location bug · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/error.20location.20bug.html">error location bug</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="190888563"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/error%20location%20bug/near/190888563" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sebastian Köln <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/error.20location.20bug.html#190888563">(Mar 17 2020 at 18:03)</a>:</h4>
<p>I have an interesting bug …<br>
<a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=100150b71487fffe7113cd4078b66741" target="_blank" title="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=100150b71487fffe7113cd4078b66741">https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=100150b71487fffe7113cd4078b66741</a></p>



<a name="190888625"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/error%20location%20bug/near/190888625" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sebastian Köln <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/error.20location.20bug.html#190888625">(Mar 17 2020 at 18:03)</a>:</h4>
<p>if you change <br>
<code> y: 0.01 * 1i16.into()</code><br>
to<br>
<code> y: 0.01 * 1i16 as f64</code><br>
it works</p>



<a name="190889012"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/error%20location%20bug/near/190889012" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/error.20location.20bug.html#190889012">(Mar 17 2020 at 18:06)</a>:</h4>
<p>I believe it would be possible to implement <code>Into&lt;MyType&gt; for i16</code> and <code>Mul&lt;RHS=MyType&gt; for f64</code>, in which case it is not known if <code>f64</code> should be used or <code>MyType</code>.</p>



<a name="190889331"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/error%20location%20bug/near/190889331" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sebastian Köln <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/error.20location.20bug.html#190889331">(Mar 17 2020 at 18:09)</a>:</h4>
<p>the funny thing is, that the error isn't even related to the closure</p>



<a name="190889682"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/error%20location%20bug/near/190889682" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/error.20location.20bug.html#190889682">(Mar 17 2020 at 18:12)</a>:</h4>
<p>You should probably report an issue for the bad error message.</p>



<a name="190889686"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/error%20location%20bug/near/190889686" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sebastian Köln <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/error.20location.20bug.html#190889686">(Mar 17 2020 at 18:12)</a>:</h4>
<p><a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=c122d194c55598f418a68e169102ca73" target="_blank" title="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=c122d194c55598f418a68e169102ca73">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=c122d194c55598f418a68e169102ca73</a></p>



<a name="190891218"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/error%20location%20bug/near/190891218" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sebastian Köln <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/error.20location.20bug.html#190891218">(Mar 17 2020 at 18:24)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/70082" target="_blank" title="https://github.com/rust-lang/rust/issues/70082">https://github.com/rust-lang/rust/issues/70082</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>